package main

import (
	"yundian/internel/app/handlers/pcl/zmsc/admin/synchandler"
	"yundian/internel/pkg/dbs"
	"yundian/internel/pkg/dingo"
)

func main()  {
	dingo.InitViper("./configs/adm.yaml")
	dbs.NewMysqlComponent().Step()
	// 抓取
	//cookie := "registerBusinessman=c79e4c7c4974c5ca42cfd93140d61719; JSESSIONID=node071667r6nem596o60cxi5lq0q1138.node0"
	//synchandler.GetDeviceList(cookie) // 获取设备信息
	//synchandler.GetThUsers(cookie) // 获取代理商用户信息


	//synchandler.GetYCDeviceList(cookie)
	//synchandler.GetYCUsers(cookie) // 易充


	cookie := "JSESSIONID=node04ecpx5kgjj1k1elpd0tjbik0n2982.node0"
	synchandler.UpdateUserPrices(cookie)


	// 入库
	//path := fmt.Sprintf("./data/users/%s", "20210625235730")
	//logic.NewSyncLogic().DotaskSCUsers(1, path)
}
